<script setup>
  // 组合式API
  import LifeCycle from './components/LifeCycle.vue';
  import { ref } from 'vue'

  // 是否激活组件
  const isActive = ref(true)
</script>

<template>
  <div>
    <life-cycle v-if="isActive" />
  </div>
</template>


<style scoped></style>